{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.js}"></script>
<body>
<div class="sub-body">
<div class="tab-frame" style="width: 700px">
<div class="tab-title-1"><span>{$calc.name}</span></div>
<script>
    function calc(input){
    <!--{foreach from=$calc.para item=p key=key}-->
    var {$key}=parseFloat('{$p}');
    <!--{/foreach}-->
        input=parseFloat(input);
        var result={$calc.gongshi};
        $('#result').html(result);
        return result;
    }
</script>
    <table cellspacing="0" cellpadding="0" class="tab-display" id="tab-color">
        <tr>
            <td align="left">
                请输入：<input type="text" onBlur="calc(this.value)" onKeyUp="calc(this.value)" size="6" class="input-1"/> 结果:<span id="result"></span>
            </td>
        </tr>
    </table>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div>
</div>
</body>
</html>